
# coding=utf-8

import tensorflow as tf

import numpy as np
#初始化GPU和TF
#初始化GPU和TF
gpu_options=tf.GPUOptions(per_process_gpu_memory_fraction=0.8)
gpu_options.allow_growth=True
sess=tf.Session(config=tf.ConfigProto(gpu_options=gpu_options))
#config.gpu_options.allow_growth = True 
tf.reset_default_graph()
 
#

hello = tf.constant('hhh')

sess = tf.Session()

print(sess.run(hello))
